<?php
	//公共类，验证session
	class CommonAction extends Action{
		public function _initialize(){
			$user=M('User');
			$data['uid']=$_SESSION['id'];
			$res=$user->where($data)->getField('username');
			if($res==''){
				$this->redirect('Index/init');
			}
		}
	}
?>
